<template>
    <div class="apidoc-view">
        <h2>/api/shop/add 新增商品</h2>
        <p>请求方式：POST</p>
        <h3>请求参数</h3>
        <pre class="code">{
  "title": "string",
  "categoryId": 1,
  "saleTime": 1717929600000, // 时间戳（毫秒）
  "bannerUrl": ["https://..."], // 最多5张
  "infoUrl": ["https://..."]   // 最多10张
}</pre>
        <h3>返回示例</h3>
        <pre class="code">{
  "code": 200,
  "success": true,
  "msg": "OK",
  "data": {
    "id": 1001,
    "title": "...",
    "categoryId": 1,
    "saleTime": 1717929600000,
    "bannerUrl": ["..."],
    "infoUrl": ["..."]
  }
}</pre>
    </div>
</template>

<script setup lang="ts">
</script>

<style scoped>
.apidoc-view {
    padding: 2rem;
}

.code {
    background: #f6f8fa;
    border: 1px solid #eaecef;
    border-radius: 6px;
    padding: 12px;
    white-space: pre-wrap;
}
</style>
